
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class RecordCase extends org.xteam.parser.runtime.AstNode {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getRecordCaseType();
	}
	
	protected VariantSelector selector;
	protected org.xteam.parser.runtime.AstList<RecordCaseArm> arms;
	
	public RecordCase(Span span, VariantSelector selector,org.xteam.parser.runtime.AstList<RecordCaseArm> arms) {
		super(span);
		this.selector = selector;
		this.arms = arms;
	}
	
	
	public VariantSelector getSelector() {
		return selector;
	}
	
	public void setSelector(VariantSelector selector) {
		this.selector = selector;
	}
	
	public org.xteam.parser.runtime.AstList<RecordCaseArm> getArms() {
		return arms;
	}
	
	public void setArms(org.xteam.parser.runtime.AstList<RecordCaseArm> arms) {
		this.arms = arms;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitRecordCase(this);
	}
}
